package cn.powertime.evaluation.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class ReqCourseTestPaperSearchVo implements Serializable {

    @ApiModelProperty(value = "类型，1:课后作业2:课程刷题", required = true, name = "type", example = "1")
    @NotNull(message = "类型不能为空")
    @Max(value = 2, message = "类型最大值为2")
    @Min(value = 1, message = "类型最小值为1")
    private Integer type;

    @ApiModelProperty(value = "目标ID，类型1时为小节id/类型2时为课程ID", required = true, name = "targetId", position = 1)
    @NotNull(message = "目标ID不能为空")
    private Long targetId;

}
